package com.matrix.java.chap_18;

public class Ex18_08 {
    public static void main(String[] args) {
        reverseDisplay(123);
    }

    public static void reverseDisplay(int value) {
        if (value!=0){
            System.out.print(value%10);
            reverseDisplay(value/10);
        }
    }
}
